#ifndef STANDBY_H
#define STANDBY_H

#include <QObject>
#include <QThread>

#include <QTimer>
extern "C" {
#include "tools/gsensor.h"
//#include "dispLayer/drv_display.h"
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>
#include <sys/ioctl.h>

}
class Standby : public QThread
{
    Q_OBJECT
    public:
        Standby();
        void run();
        int sleep;
        bool sleepflag;
        int checkEvent(int *x,int *y,int *z,int *pindex,int *nindex);
        void set_backlight(int v);
        void set_StanbyValue(int );
    private slots:
    void sleepUpdate();
	//void clickScreenStandby();
};

#endif // STANDBY_H
